package com.softWang.system.controller.vo.systemDepts;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

@Data
public class SystemDeptsDetailResult{

    @ApiModelProperty(value = "部门主键id")
    private Long id;

    @ApiModelProperty(value = "部门名")
    private String dname;

    @ApiModelProperty(value = "类型，(1.内置部门，2.创建的普通部门)")
    private Integer type;


    @ApiModelProperty(value = "父id")
    @NotNull(message = "pid不能为空")
    private Long pid;

    @ApiModelProperty(value = "树id路径，最大长度为100位")
    private String treecode;

    @ApiModelProperty(value = "状态，0:正常,1:停用")
    private Integer state;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime ctime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime utime;

    @ApiModelProperty(value = "创建用户id")
    private Long cuser;

    @ApiModelProperty(value = "更新用户id")
    private Long euser;

}